
function infoPublish(type, infoID, page) {
	var url = "";
	switch (type) {
	case 1:
		url = "/member/publishGshysinfo?infoID=" + infoID + "&page=" + page;
		break;
	case 2:
		url = "/member/publishJzhysinfo?infoID=" + infoID + "&page=" + page;
		break;
	case 3:
		url = "/member/publishYhysinfo?infoID=" + infoID + "&page=" + page;
		break;
	case 4:
		url = "/member/publishGzcinfo?infoID=" + infoID + "&page=" + page;
		break;
	case 5:
		url = "/member/publishJkysinfo?infoID=" + infoID + "&page=" + page;
		break;
	case 6:
		url = "/member/publishHyysinfo?infoID=" + infoID + "&page=" + page;
		break;
	case 7:
		url = "/member/publishDcinfo?infoID=" + infoID + "&page=" + page;
		break;
	case 8:
		url = "/member/publishJkysxqinfo?infoID=" + infoID + "&page=" + page;
		break;
	case 9:
		url = "/member/publishTshxinfo?infoID=" + infoID + "&page=" + page;
		break;
	case 10:
		url = "/member/publishCcfwinfo?infoID=" + infoID + "&page=" + page;
		break;
	case 11:
		url = "/member/publishGkfwinfo?infoID=" + infoID + "&page=" + page;
		break;
	default:
		alert("请求参数不正确");
		return;
	}
	$.post(
		url,function(data) {
			console.log(data);
			if (data.result == 0) {
				oTable.page(data.page).draw(false);
			} else {
				alert(data.desc);
			}
		}
	);
}

function updateInfo(type, infoID) {
	var url = "";
	switch (type) {
	case 1:
		url = "/member/initUpdateGshysinfo?infoID=" + infoID;
		break;
	case 2:
		url = "/member/initUpdateJzhysinfo?infoID=" + infoID;
		break;
	case 3:
		url = "/member/initUpdateYhysinfo?infoID=" + infoID;
		break;
	case 4:
		url = "/member/initUpdateGzcinfo?infoID=" + infoID;
		break;
	case 5:
		url = "/member/initUpdateJkysinfo?infoID=" + infoID;
		break;
	case 6:
		url = "/member/initUpdateHyysinfo?infoID=" + infoID;
		break;
	case 7:
		url = "/member/initUpdateDcinfo?infoID=" + infoID;
		break;
	case 8:
		url = "/member/initUpdateJkysxqinfo?infoID=" + infoID;
		break;
	case 9:
		url = "/member/initUpdateTshxinfo?infoID=" + infoID;
		break;
	case 10:
		url = "/member/initUpdateCcfwinfo?infoID=" + infoID;
		break;
	case 11:
		url = "/member/initUpdateGkfwinfo?infoID=" + infoID;
		break;
	default:
		alert("请求参数不正确");
		return;
	}
	window.location.href = url;
}

function deleteInfo(type, infoID) {
	var url = "";
	switch (type) {
	case 1:
		url = "/member/deleteGshysinfo?infoID=" + infoID;
		break;
	case 2:
		url = "/member/deleteJzhysinfo?infoID=" + infoID;
		break;
	case 3:
		url = "/member/deleteYhysinfo?infoID=" + infoID;
		break;
	case 4:
		url = "/member/deleteGzcinfo?infoID=" + infoID;
		break;
	case 5:
		url = "/member/deleteJkysinfo?infoID=" + infoID;
		break;
	case 6:
		url = "/member/deleteHyysinfo?infoID=" + infoID;
		break;
	case 7:
		url = "/member/deleteDcinfo?infoID=" + infoID;
		break;
	case 8:
		url = "/member/deleteJkysxqinfo?infoID=" + infoID;
		break;
	case 9:
		url = "/member/deleteTshxinfo?infoID=" + infoID;
		break;
	case 10:
		url = "/member/deleteCcfwinfo?infoID=" + infoID;
		break;
	case 11:
		url = "/member/deleteGkfwinfo?infoID=" + infoID;
		break;
	default:
		alert("请求参数不正确");
		return;
	}

	window.location.href = url;
}

function search() {
	$('#my-table').dataTable().fnDraw();
}